package com.kaishengit.service;

import java.util.List;

import com.kaishengit.dao.GoalDao;
import com.kaishengit.entity.Goal;

public class GoalService {
	GoalDao dao = new GoalDao();
	public List<Goal> findListByProjectId(String projectid) {
		
		return dao.findListByProjectId(projectid);
	}
	
	public Goal findGoalByGoalId(String id) {
		
		return dao.findGoalByGoalId(id);
	}

	public boolean editGoal(String id, String name, String desc) {
		return dao.editGoal(id,name,desc);
		
	}

	public boolean addGoal(Goal goal) {
		return dao.addGoal(goal);
		
	}

}
